package com.google.android.exoplayer2.metadata.id3;

import android.os.Parcel;
import android.os.Parcelable.Creator;
import androidx.annotation.Nullable;
import java.util.Arrays;
import o.anr;

public final class BinaryFrame extends Id3Frame {
    public static final Creator<BinaryFrame> CREATOR = new Creator<BinaryFrame>() {
        public /* synthetic */ Object createFromParcel(Parcel parcel) {
            return ˎ(parcel);
        }

        public /* synthetic */ Object[] newArray(int i) {
            return ˊ(i);
        }

        public BinaryFrame ˎ(Parcel parcel) {
            return new BinaryFrame(parcel);
        }

        public BinaryFrame[] ˊ(int i) {
            return new BinaryFrame[i];
        }
    };
    public final byte[] ˏ;

    public BinaryFrame(String str, byte[] bArr) {
        super(str);
        this.ˏ = bArr;
    }

    BinaryFrame(Parcel parcel) {
        super((String) anr.ˎ(parcel.readString()));
        this.ˏ = (byte[]) anr.ˎ(parcel.createByteArray());
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        BinaryFrame binaryFrame = (BinaryFrame) obj;
        if (this.ʻ.equals(binaryFrame.ʻ) && Arrays.equals(this.ˏ, binaryFrame.ˏ)) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        return ((this.ʻ.hashCode() + 527) * 31) + Arrays.hashCode(this.ˏ);
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(this.ʻ);
        parcel.writeByteArray(this.ˏ);
    }
}
